<template>
  <view class="app-container">
    <h5>已发送至手机18888888888，<text>重新发送(59)</text></h5>
    <u-code-input v-model="smsCode" :maxlength="6" focus @finish="onFinish"></u-code-input>
  </view>
</template>

<script>
export default {
  data() {
    return {
      smsCode: '',
      phone: ''
    }
  },
  onLoad(pageInfo) {
    this.phone = pageInfo.phone
  },
  methods: {
    onFinish() {
      uni.navigateTo({
        url: `/pages/setnewpwd/setnewpwd?phone=${this.phone}&smsCode=${this.smsCode}`
      })
    }
  }
}
</script>

<style lang="scss"></style>
